package paint;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

/**
 * Classe ControlerCarrePalette<br>
 * @author Romain Bustos
 * @author Matthieu Perrin
 * @version 1.0
 */
public class ControlerCarrePalette implements MouseListener
{
    CarrePalette carrepalette;

    public ControlerCarrePalette(CarrePalette cp)
    {
        this.carrepalette = cp;
    }


    public void mouseClicked(MouseEvent me) { }
    public void mouseDragged(MouseEvent me) { }
    public void mouseExited(MouseEvent me) {  }
    public void mouseEntered(MouseEvent me) { }
    public void mouseMoved(MouseEvent me) { }
    public void mousePressed(MouseEvent me)
    {
        carrepalette.selection.setCouleur(carrepalette.couleur);
    }
    public void mouseReleased(MouseEvent me) { }
}
